package com.qiku.dao;

import com.qiku.pojo.User;

import java.util.List;

public interface UserDao {

    public User userLogin(String username, String password);
    //定义登录功能

    public User findUserByName(String username);
    //根据用户名查询用户

    public List<User> findAllUser();
    //查询所有用户

    public int userRegister(User user);
    //注册

    public User findUserById(int id);
    //根据id获取用户信息

    public int destroyUser(int isDel,int id);
    //管理员注销用户
}
